<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@include file="/common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>用户登录 </title>
<script type="text/javascript" src="js/jquery.js"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #016aa9;
	overflow:hidden;
}
.STYLE1 {
	color: #000000;
	font-size: 12px;
}
-->
</style>
</head>

<body>
<html:form action="login" method="post">
	<input type="hidden" name="callMethod" id="callMethod" value="loginForAdmin"/>
	<input type="hidden" name="firstLogin" value="firstLogin"/>
	<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td><table width="962" border="0" align="center" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td height="235" background="img/login_03.gif">&nbsp;</td>
      </tr>
      <tr>
        <td height="53"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td width="394" height="53" background="img/login_05.gif">&nbsp;</td>
            <td width="206" background="img/login_06.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tbody><tr>
                <td width="16%" height="25"><div align="right"><span class="STYLE1">用户</span></div></td>
                <td width="57%" height="25"><div align="center">
                  <html:text property="backUser.usernum" styleId="usernum" style="width:105px; height:17px; background-color:#292929; border:solid 1px #7dbad7; font-size:12px; color:#6cd0ff" />
                </div></td>
                <td width="27%" height="25">&nbsp;</td>
              </tr>
              <tr>
                <td height="25"><div align="right"><span class="STYLE1">密码</span></div></td>
                <td height="25"><div align="center">
                  <html:password property="backUser.password" styleId="password" style="width:105px; height:17px; background-color:#292929; border:solid 1px #7dbad7; font-size:12px; color:#6cd0ff" /> 
                </div></td>
                <td height="25"><div align="left"><img onclick=" submitForm();"  src="img/dl.gif" width="49" height="18" border="0"></div></td>
              </tr>
            </tbody></table></td>
            <td width="362" background="img/login_07.gif">&nbsp;</td>
          </tr>
        </tbody></table></td>
      </tr>
      <tr>
        <td height="213" background="img/login_08.gif">&nbsp;</td>
      </tr>
    </tbody></table></td>
  </tr>
</tbody></table>


</html:form>
<script type="text/javascript">
			$(document).ready(function(){				
				<logic:notEmpty name="userError">
					alert('<%=request.getAttribute("userError")%>');
				</logic:notEmpty>
			}); 
			
			function submitForm(){
				if($.trim($("#usernum").val())==""){
					alert("请输入用户名！");
					return ;
				}
				
				if($.trim($("#password").val())==""){
					alert("请输入密码！");
					return ;
				}
				
				$('form').submit();
			}
			
			$("#password").keydown(function(event){ 
				event.keyCode==13 &&submitForm(); 
			});
</script>
</body>
</html>